InboundHandler{ }
messageReceived{
  Object message=e.getMessage();
  if (!readingChunks) {
    request=(HttpRequest)e.getMessage();
    for (    RoutingRule r : configuration.getRoutingRules()) {
      if (r.isMatch(url)) {
    readingChunks=request.isChunked();
      rule.getEndpoint().writeRequest(request,messageId);
      if (!readingChunks) {
        new ResponseWriter(e.getChannel(),!isKeepAlive(request),request.isChunked()).write();
    HttpChunk chunk=(HttpChunk)e.getMessage();
    rule.getEndpoint().writeChunk(chunk,messageId);
      new ResponseWriter(e.getChannel(),!isKeepAlive(request),request.isChunked()).write();
      readingChunks=false;
}
exceptionCaught{
  if (e.getChannel().isConnected()) {
    e.getChannel().close();
}
